package com.example.es.service;

import com.example.es.entity.Product;
import com.example.es.rest.vo.AggVO;
import com.example.es.rest.vo.QueryVO;
import org.springframework.data.domain.Page;
import java.util.List;

/**
 * @Title:
 * @Author: wangsai
 * @Date: 2020/1/20 15:57
 * @Description:
 */
public interface ProductService {
    Product save(Product product);

    List<Product> finAll();

    Page<Product> search(QueryVO query, int page, int size);

    AggVO agg(QueryVO query);
}
